package fr.imag.m2pgi.m2m.geoloc.gui;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class Activator implements BundleActivator {

  private MainFrame mf;
  private Thread t;
  public void start(BundleContext context) throws Exception {
    System.out.println("Start visualizer...");
    mf = new MainFrame(context, 200, 100);
    t = new Thread(mf);
    t.start();
  }

  public void stop(BundleContext context) throws Exception {
    t.interrupt();
  }

}
